package com.riant.day05;

import org.apache.commons.lang3.builder.ToStringBuilder;

import java.sql.Blob;
import java.sql.Timestamp;
import java.util.Date;

/**
 * @Classname Pet
 * @Description TODO
 * @Date 2021/3/13 23:22
 * @Created by 张斌
 */
public class Pet {
    private int id;
    private String name;
    private String owner;
    private String sex;
    private Date birth;
    private Timestamp registerDate;
    private Blob desp;
    private int age;

    public Pet() {
    }

    public Pet(int id, String name, String owner, String sex, Date birth, Timestamp registerDate, Blob desp, int age) {
        this.id = id;
        this.name = name;
        this.owner = owner;
        this.sex = sex;
        this.birth = birth;
        this.registerDate = registerDate;
        this.desp = desp;
        this.age = age;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getOwner() {
        return owner;
    }

    public void setOwner(String owner) {
        this.owner = owner;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Date getBirth() {
        return birth;
    }

    public void setBirth(Date birth) {
        this.birth = birth;
    }

    public Timestamp getRegisterDate() {
        return registerDate;
    }

    public void setRegisterDate(Timestamp registerDate) {
        this.registerDate = registerDate;
    }

    public Blob getDesp() {
        return desp;
    }

    public void setDesp(Blob desp) {
        this.desp = desp;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
